{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport { clearFix, textEllipsis } from '../../style';\nvar genListStyle = function genListStyle(token) {\n  var _actionsCls, _itemCls, _actionsCls2, _$concat, _Object$assign;\n  var componentCls = token.componentCls,\n    antCls = token.antCls,\n    iconCls = token.iconCls,\n    fontSize = token.fontSize,\n    lineHeight = token.lineHeight;\n  var itemCls = \"\".concat(componentCls, \"-list-item\");\n  var actionsCls = \"\".concat(itemCls, \"-actions\");\n  var actionCls = \"\".concat(itemCls, \"-action\");\n  var listItemHeightSM = Math.round(fontSize * lineHeight);\n  return _defineProperty({}, \"\".concat(componentCls, \"-wrapper\"), _defineProperty({}, \"\".concat(componentCls, \"-list\"), Object.assign(Object.assign({}, clearFix()), (_Object$assign = {\n    lineHeight: token.lineHeight\n  }, _defineProperty(_Object$assign, itemCls, (_itemCls = {\n    position: 'relative',\n    height: token.lineHeight * fontSize,\n    marginTop: token.marginXS,\n    fontSize: fontSize,\n    display: 'flex',\n    alignItems: 'center',\n    transition: \"background-color \".concat(token.motionDurationSlow),\n    '&:hover': {\n      backgroundColor: token.controlItemBgHover\n    }\n  }, _defineProperty(_itemCls, \"\".concat(itemCls, \"-name\"), Object.assign(Object.assign({}, textEllipsis), {\n    padding: \"0 \".concat(token.paddingXS, \"px\"),\n    lineHeight: lineHeight,\n    flex: 'auto',\n    transition: \"all \".concat(token.motionDurationSlow)\n  })), _defineProperty(_itemCls, actionsCls, (_actionsCls = {}, _defineProperty(_actionsCls, actionCls, {\n    opacity: 0\n  }), _defineProperty(_actionsCls, \"\".concat(actionCls).concat(antCls, \"-btn-sm\"), {\n    height: listItemHeightSM,\n    border: 0,\n    lineHeight: 1,\n    // FIXME: should not override small button\n    '> span': {\n      transform: 'scale(1)'\n    }\n  }), _defineProperty(_actionsCls, \"\\n              \".concat(actionCls, \":focus,\\n              &.picture \").concat(actionCls, \"\\n            \"), {\n    opacity: 1\n  }), _defineProperty(_actionsCls, iconCls, {\n    color: token.colorTextDescription,\n    transition: \"all \".concat(token.motionDurationSlow)\n  }), _defineProperty(_actionsCls, \"&:hover \".concat(iconCls), {\n    color: token.colorText\n  }), _actionsCls)), _defineProperty(_itemCls, \"\".concat(componentCls, \"-icon \").concat(iconCls), {\n    color: token.colorTextDescription,\n    fontSize: fontSize\n  }), _defineProperty(_itemCls, \"\".concat(itemCls, \"-progress\"), {\n    position: 'absolute',\n    bottom: -token.uploadProgressOffset,\n    width: '100%',\n    paddingInlineStart: fontSize + token.paddingXS,\n    fontSize: fontSize,\n    lineHeight: 0,\n    pointerEvents: 'none',\n    '> div': {\n      margin: 0\n    }\n  }), _itemCls)), _defineProperty(_Object$assign, \"\".concat(itemCls, \":hover \").concat(actionCls), {\n    opacity: 1,\n    color: token.colorText\n  }), _defineProperty(_Object$assign, \"\".concat(itemCls, \"-error\"), (_$concat = {\n    color: token.colorError\n  }, _defineProperty(_$concat, \"\".concat(itemCls, \"-name, \").concat(componentCls, \"-icon \").concat(iconCls), {\n    color: token.colorError\n  }), _defineProperty(_$concat, actionsCls, (_actionsCls2 = {}, _defineProperty(_actionsCls2, \"\".concat(iconCls, \", \").concat(iconCls, \":hover\"), {\n    color: token.colorError\n  }), _defineProperty(_actionsCls2, actionCls, {\n    opacity: 1\n  }), _actionsCls2)), _$concat)), _defineProperty(_Object$assign, \"\".concat(componentCls, \"-list-item-container\"), {\n    transition: \"opacity \".concat(token.motionDurationSlow, \", height \").concat(token.motionDurationSlow),\n    // For smooth removing animation\n    '&::before': {\n      display: 'table',\n      width: 0,\n      height: 0,\n      content: '\"\"'\n    }\n  }), _Object$assign))));\n};\nexport default genListStyle;","map":{"version":3,"names":["clearFix","textEllipsis","genListStyle","token","componentCls","antCls","iconCls","fontSize","lineHeight","itemCls","actionsCls","actionCls","listItemHeightSM","Math","round","Object","assign","position","height","marginTop","marginXS","display","alignItems","transition","motionDurationSlow","backgroundColor","controlItemBgHover","padding","paddingXS","flex","opacity","border","transform","color","colorTextDescription","colorText","bottom","uploadProgressOffset","width","paddingInlineStart","pointerEvents","margin","colorError","content"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/upload/style/list.js"],"sourcesContent":["import { clearFix, textEllipsis } from '../../style';\nconst genListStyle = token => {\n  const {\n    componentCls,\n    antCls,\n    iconCls,\n    fontSize,\n    lineHeight\n  } = token;\n  const itemCls = `${componentCls}-list-item`;\n  const actionsCls = `${itemCls}-actions`;\n  const actionCls = `${itemCls}-action`;\n  const listItemHeightSM = Math.round(fontSize * lineHeight);\n  return {\n    [`${componentCls}-wrapper`]: {\n      [`${componentCls}-list`]: Object.assign(Object.assign({}, clearFix()), {\n        lineHeight: token.lineHeight,\n        [itemCls]: {\n          position: 'relative',\n          height: token.lineHeight * fontSize,\n          marginTop: token.marginXS,\n          fontSize,\n          display: 'flex',\n          alignItems: 'center',\n          transition: `background-color ${token.motionDurationSlow}`,\n          '&:hover': {\n            backgroundColor: token.controlItemBgHover\n          },\n          [`${itemCls}-name`]: Object.assign(Object.assign({}, textEllipsis), {\n            padding: `0 ${token.paddingXS}px`,\n            lineHeight,\n            flex: 'auto',\n            transition: `all ${token.motionDurationSlow}`\n          }),\n          [actionsCls]: {\n            [actionCls]: {\n              opacity: 0\n            },\n            [`${actionCls}${antCls}-btn-sm`]: {\n              height: listItemHeightSM,\n              border: 0,\n              lineHeight: 1,\n              // FIXME: should not override small button\n              '> span': {\n                transform: 'scale(1)'\n              }\n            },\n            [`\n              ${actionCls}:focus,\n              &.picture ${actionCls}\n            `]: {\n              opacity: 1\n            },\n            [iconCls]: {\n              color: token.colorTextDescription,\n              transition: `all ${token.motionDurationSlow}`\n            },\n            [`&:hover ${iconCls}`]: {\n              color: token.colorText\n            }\n          },\n          [`${componentCls}-icon ${iconCls}`]: {\n            color: token.colorTextDescription,\n            fontSize\n          },\n          [`${itemCls}-progress`]: {\n            position: 'absolute',\n            bottom: -token.uploadProgressOffset,\n            width: '100%',\n            paddingInlineStart: fontSize + token.paddingXS,\n            fontSize,\n            lineHeight: 0,\n            pointerEvents: 'none',\n            '> div': {\n              margin: 0\n            }\n          }\n        },\n        [`${itemCls}:hover ${actionCls}`]: {\n          opacity: 1,\n          color: token.colorText\n        },\n        [`${itemCls}-error`]: {\n          color: token.colorError,\n          [`${itemCls}-name, ${componentCls}-icon ${iconCls}`]: {\n            color: token.colorError\n          },\n          [actionsCls]: {\n            [`${iconCls}, ${iconCls}:hover`]: {\n              color: token.colorError\n            },\n            [actionCls]: {\n              opacity: 1\n            }\n          }\n        },\n        [`${componentCls}-list-item-container`]: {\n          transition: `opacity ${token.motionDurationSlow}, height ${token.motionDurationSlow}`,\n          // For smooth removing animation\n          '&::before': {\n            display: 'table',\n            width: 0,\n            height: 0,\n            content: '\"\"'\n          }\n        }\n      })\n    }\n  };\n};\nexport default genListStyle;"],"mappings":";AAAA,SAASA,QAAQ,EAAEC,YAAY,QAAQ,aAAa;AACpD,IAAMC,YAAY,GAAG,SAAfA,YAAY,CAAGC,KAAK,EAAI;EAAA;EAC5B,IACEC,YAAY,GAKVD,KAAK,CALPC,YAAY;IACZC,MAAM,GAIJF,KAAK,CAJPE,MAAM;IACNC,OAAO,GAGLH,KAAK,CAHPG,OAAO;IACPC,QAAQ,GAENJ,KAAK,CAFPI,QAAQ;IACRC,UAAU,GACRL,KAAK,CADPK,UAAU;EAEZ,IAAMC,OAAO,aAAML,YAAY,eAAY;EAC3C,IAAMM,UAAU,aAAMD,OAAO,aAAU;EACvC,IAAME,SAAS,aAAMF,OAAO,YAAS;EACrC,IAAMG,gBAAgB,GAAGC,IAAI,CAACC,KAAK,CAACP,QAAQ,GAAGC,UAAU,CAAC;EAC1D,qCACMJ,YAAY,6CACVA,YAAY,YAAUW,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEhB,QAAQ,EAAE,CAAC;IACnEQ,UAAU,EAAEL,KAAK,CAACK;EAAU,mC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